//
//  GUFunctions.h
//  functions
//
//  Created by world on 13-6-9.
//  Copyright (c) 2013年 world. All rights reserved.
//

#ifndef functions_GUFunctions_h
#define functions_GUFunctions_h
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>



/**convert BOOL to String. 
 BOOL YES return String YES,
 BOOL NO return String NO
 */
inline NSString *NSStringFromBOOL(BOOL value);
inline BOOL  NSStringToBOOL(NSString* value);




/**easy Method for create UIImage*/
inline  UIImage* imageByName(NSString* name);
inline  UIImage* imageByURL(NSString* urlStr);

/**Method for resize image**/
inline  UIImage* imageToSize(UIImage* image, CGSize targetSize);

/**Common Method for NSString */
/** 
   if value is nil or value.length == 0  return yes
   otherwise return no
   nil    return yes
 */
inline BOOL isNSStringEmpty(NSString* value);

/** 
 if value is nil or value.length == 0  return yes
 otherwise return no。 
 value  '   '   return true
 */
inline BOOL isNSStringBlank(NSString* value);

/**
 startsWith  end
 */


/**签名方法 md5  sha1 等方法*/

/**
 return message md5 hex string 
 */
inline NSString*  md5NSString(NSString* message);





#endif
